package scenic;

/**
 * This interface is used to define a color function. A color
 * function is used for drawing gradients. 
 */
public interface ColorFunction {
	/**
	 * Returns the color value at the given position.
	 * 
	 * @param x the argument.
	 * @return the color.
	 */
	Color value(double x);
	/**
	 * Returns the minimum position of the function.
	 */
	double min();
	/**
	 * Returns the maximum position of the function.
	 */
	double max();
}
